#ifndef NAPI_BRIDGE_FUNCTION_H
#define NAPI_BRIDGE_FUNCTION_H

#include "napi/native_api.h"
#include "js_native_api.h"
#include "js_native_api_types.h"

#ifdef __cplusplus
extern "C" {
#endif
napi_threadsafe_function createTSFWithCallback(napi_env env, const char *workName, void *callback);

void callTSFWithData(napi_threadsafe_function tsfn, void *data);

#ifdef __cplusplus
}
#endif
#endif //NAPI_BRIDGE_FUNCTION_H
